package org.example.platform;


import org.example.platform.redis.posity.RedisRepository;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.Resource;

@SpringBootApplication
@MapperScan("org.example.platform.elasticsearch.dao")
public class Main
//        implements CommandLineRunner
{
//    @Resource
//    RedisRepository redisRepository;


    public static void main(String[] args) {
        SpringApplication.run(Main.class, args);
    }

//    @Override
//    public void run(String... args) throws Exception {
//        // 保存数据到redis
//        redisRepository.save("aaaa");
//
//        // 从redis中获取数据
//        Object list = redisRepository.findAll();
//        String value = String.valueOf(redisRepository.findById("aaaa"));
//        System.out.println(value);
//
//    }
}